package com.mty.kjtest.Error;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.mty.kjtest.R;

/**
 * @author MaTianyu @http://litesuits.com
 * @date 2015-08-25
 */
public class BugReportActivity extends Activity implements View.OnClickListener{
    public static final String exceptionMsg = "exceptionMsg";
    TextView tvLeft;
    TextView tvTitle;
    TextView tvRight;
    TextView tvMsg;

    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.act_bug_report);
        tvLeft = (TextView) findViewById(R.id.tvLeft);
        tvTitle = (TextView) findViewById(R.id.tvTitle);
        tvRight = (TextView) findViewById(R.id.tvRight);
        tvMsg = (TextView) findViewById(R.id.tvMsg);

        String sw = getIntent().getStringExtra(exceptionMsg);
        tvMsg.setText(sw);

        tvLeft.setOnClickListener(this);
        tvRight.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if(v == tvLeft){
            finish();
        }else if(v == tvRight){

        }
    }
}
